package com.tsd.jxc.stock.dao;

import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import com.tsd.jxc.stock.entity.JxcStockInventory;
import com.tsd.jxc.stock.entity.JxcStockInventoryExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcStockInventoryMapper
 *
 * @author Hillpool
 * @date 2022/07/29 15:06:41
 */
public interface JxcStockInventoryMapper {

    JxcStockInventory selectByPrimaryKey(Long id);

    JxcStockInventoryExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(JxcStockInventory record);

    int insertSelective(JxcStockInventory record);

    int insertList(@Param("list") List<JxcStockInventoryExt> list);

    int updateByPrimaryKey(JxcStockInventory record);

    int updateByPrimaryKeySelective(JxcStockInventory record);

    int updateList(@Param("list") List<JxcStockInventoryExt> list);

    List<JxcStockInventoryExt> selectByEntity(JxcStockInventoryExt record);

    List<JxcStockInventoryExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcStockInventoryExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcStockInventoryExt> selectByParams(@Param("params") Map<String, Object> params);

    List<JxcStockInventoryExt> selectInventoryByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    int auditJxcStockInventory(JxcStockInventory record);

    JxcStockInventoryExt selectDuplicatedCode(JxcStockInventoryExt recode);

    int deleteLogicBySidList(BatchDeleteLogicVo logicVo);
}